/*
 * An XML document type.
 * Localname: init
 * Namespace: http://ejb.extranet.bf.pe/
 * Java type: InitDocument
 *
 * Automatically generated - do not modify.
 */
package impl;
/**
 * A document containing one init(@http://ejb.extranet.bf.pe/) element.
 *
 * This is a complex type.
 */
public class InitDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements InitDocument
{
    
    public InitDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INIT$0 = 
        new javax.xml.namespace.QName("http://ejb.extranet.bf.pe/", "init");
    
    
    /**
     * Gets the "init" element
     */
    public Init getInit()
    {
        synchronized (monitor())
        {
            check_orphaned();
            Init target = null;
            target = (Init)get_store().find_element_user(INIT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "init" element
     */
    public void setInit(Init init)
    {
        synchronized (monitor())
        {
            check_orphaned();
            Init target = null;
            target = (Init)get_store().find_element_user(INIT$0, 0);
            if (target == null)
            {
                target = (Init)get_store().add_element_user(INIT$0);
            }
            target.set(init);
        }
    }
    
    /**
     * Appends and returns a new empty "init" element
     */
    public Init addNewInit()
    {
        synchronized (monitor())
        {
            check_orphaned();
            Init target = null;
            target = (Init)get_store().add_element_user(INIT$0);
            return target;
        }
    }
}
